package customview.ike.com.customviewproject.widget.Refresh1;

import android.support.v4.view.ViewCompat;
import android.view.View;

/**
 * Created by Administrator on 2017/11/28.
 */

public class Utils {
    /**
     * 判断可滚动的View是否在底部
     * @return
     */
    public static boolean isViewAtBottom(View view){
        boolean canScrollUp = ViewCompat.canScrollVertically(view, 1);
        if (canScrollUp){
            return false;
        }
        return true;
    }
}
